<template>
  <div class="private whitebg">
    <div class="private-box">
      <div class="tab-left">
        <i class="iconfont icon-dingdan"></i>
      </div>
      <div class="tab-right">
        <i class="iconfont icon-xican-"></i>
      </div>
      <tabs :value="value" @getIndex="getCurrentIndex">
        <tab label="日常记录" index="1">
          <div class="rili">
            <i class="iconfont icon-benzi"></i>
          </div>
          <Heart />
        </tab>
        <tab label="症状调理" index="2">
          内容2
        </tab>
      </tabs>
      
    </div>
  </div>
</template>

<script>
import Heart from './heart/Heart'
  export default {
    name:"Private",
    data(){
      return{
        value:1
      }
    },
    methods:{
      getCurrentIndex(index){
        this.value = index;
      }
    },
    components:{
      Heart
    }
  }
</script>

<style scoped>
.private-box{
  width: 100%;
  position: relative;
}
.tab-left,.tab-right{

  width: 0.37rem;
  height: 0.45rem;
}
.tab-left {
  position: absolute;
  top: 0.7rem;
  left: 1rem;
  font-size: 0.5rem;
  color: #43bf92;
}
.tab-right {
  position: absolute;
  top: 0.68rem;
  left: 4.35rem;
  font-size: 0.5rem;
  color: #43bf92;
}
.tabs{
  font-size: 0.36rem;
}

.tab:nth-child(1)::after{
  content: '';
  display: block;
  width: 1px;
  height: 0.55rem;
  background-color: #b4b4b4;
  position: absolute;
  top: 0;
  left: 3rem;
  
}
.tab:nth-child(2){
  padding-left: 0.8rem;
  box-sizing: border-box;
}
.rili{
  position: absolute;
  top: 2rem;
  left: 3.2rem;

}
.rili i{
  width: 0.6rem;
  height: 0.6rem;
  font-size: 0.5rem;
  padding: 0.1rem;
  border: 2px solid #43bf92;
  border-radius: 100%;
  text-align: center;
  line-height: 0.6rem;
  color: #43bf92;
  font-weight: 700;
}

</style>